Style Layers
-
The base style layer class from which all other style layer classes inherit. Style layers allow runtime customization of all map styling properties.
You should use the concrete subclasses of
See moreMGLBaseStyleLayer
(which conform toMGLStyleLayer
) to style fill, line, symbol, and other layer types.Declaration
Objective-C
@interface MGLBaseStyleLayer : NSObject
Swift
class MGLBaseStyleLayer : NSObject
-
A map style’s background layer is the bottommost layer and is used to style a color or pattern to show below all other map features. You can query an
See moreMGLMapView
for itsstyle
and obtain the background layer using the-[MGLStyle layerWithIdentifier:]
method and passingbackground
for the identifier.Declaration
Objective-C
@interface MGLBackgroundStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLBackgroundStyleLayer : MGLBaseStyleLayer
-
A circle layer which allows customization of styling properties at runtime. You may instantiate a new circle layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLCircleStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLCircleStyleLayer : MGLBaseStyleLayer
-
A fill layer which allows customization of styling properties at runtime. You may instantiate a new fill layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLFillStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLFillStyleLayer : MGLBaseStyleLayer
-
A line layer which allows customization of styling properties at runtime. You may instantiate a new line layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLLineStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLLineStyleLayer : MGLBaseStyleLayer
-
A raster layer which allows customization of styling properties at runtime. You may instantiate a new raster layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLRasterStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLRasterStyleLayer : MGLBaseStyleLayer
-
A symbol layer which allows customization of styling properties at runtime. You may instantiate a new symbol layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLSymbolStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
Swift
class MGLSymbolStyleLayer : MGLBaseStyleLayer